package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息管理对象 tb_messageboard
 * 
 * @author ruoyi
 * @date 2023-11-08
 */
public class TbMessageboard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 发消息时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发消息时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date messageTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setMessageTime(Date messageTime) 
    {
        this.messageTime = messageTime;
    }

    public Date getMessageTime() 
    {
        return messageTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("messageContent", getMessageContent())
            .append("messageTime", getMessageTime())
            .toString();
    }
}
